<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单修饰符</title>
    <script src="https://unpkg.com/vue@next"></script>
    <!-- 
        lazy修饰符
        number修饰符
        trim修饰符
     -->
</head>
<body>
    <div id="root"></div>
    <script>
        // vue的生命周期函数
        const app = Vue.createApp({
            data() {
                return {
                    message: '123'
                }
            },
            template: `
                <div>
                    {{typeof message}}
                    <input v-model.number="message" type="number">
                </div>
            `
        });
        const vm = app.mount('#root');
    </script>
</body>
</html>